package com.huixuebao.after.util;


import com.huixuebao.after.entity.UserEntity;
import com.huixuebao.after.service.UserService;
import com.ysc.core.common.context.SpringContextHolder;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

/**
 * @Desc: 登录信息工具类
 * @Author: fatao_yu【fatao_yu】
 * @Date: 2020-12-11 17:50
 */
public class LoginUtil {

    private static UserService userService = SpringContextHolder.getBean(UserService.class);

    //后端管理用户
    public static final String LOGIN_TYPE_AFTER = "W";
    //登录方式-密码登录
    public static final String LOGIN_METHOD_PASSWORD = "password";

   /* public static UserEntity getLoginUser(){
        Subject subject = SecurityUtils.getSubject();
        UserEntity userLogin = new UserEntity();
        if(subject!=null){
            //userLogin = userService.getAfterUser(String.valueOf(subject.getPrincipal()));
        }
        if(userLogin==null){
            userLogin = new UserEntity();
        }
        return userLogin;
    }*/
}
